package com.caocaog.market.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.caocaog.market.modules.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;

/**
 * @Description: 频道信息表
 * @Author: jeecg-boot
 * @Date:   2021-11-19
 * @Version: V1.0
 */
@Data
@TableName("mk_shop_channel")
@ApiModel(value="mk_shop_channel对象", description="频道信息表")
public class ShopChannel extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;


	/**上级ID*/
	@Excel(name = "上级ID", width = 15)
    @ApiModelProperty(value = "上级ID")
    private String parentId;
	/**名称*/
	@Excel(name = "名称", width = 15)
    @ApiModelProperty(value = "名称")
    private String name;
	/**图标*/
	@Excel(name = "图标", width = 15)
    @ApiModelProperty(value = "图标")
    private String icon;
	/**首页显示*/
	@Excel(name = "首页显示", width = 15, dicCode = "mk_whether")
	@Dict(dicCode = "mk_whether")
    @ApiModelProperty(value = "首页显示")
    private Integer isIndex;
	/**是否有子节点*/
	@Excel(name = "是否有子节点", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @ApiModelProperty(value = "是否有子节点")
    private String hasChild;

	@Dict(dictTable = "mk_site_basic", dicText = "name", dicCode = "id")
	@ApiModelProperty(value = "分站id，值为0的是系统频道")
	private String siteId;

	@ApiModelProperty(value = "是否顶置（最多4个顶置） 0不顶置，1顶置")
	private Integer isTop;

	@TableField(exist = false)
	@ApiModelProperty(value = "经度")
	private transient String lat;
	@TableField(exist = false)
	@ApiModelProperty(value = "纬度")
	private transient String lng;


}
